package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(255)"`
	Password string `gorm:"type:varchar(255)"`
}
type Role struct {
	gorm.Model
	Name string `gorm:"type:varchar(255)"`
}
type Node struct {
	gorm.Model
	Name string `gorm:"type:varchar(255)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int(11)"`
	Rid int `gorm:"type:int(11)"`
}
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:int(11)"`
	Nid int `gorm:"type:int(11)"`
}
type Che struct {
	gorm.Model
	Name  string `gorm:"type:varchar(255)"`
	Lei   string `gorm:"type:varchar(255)"`
	Price string `gorm:"type:varchar(255)"`
	Li    string `gorm:"type:varchar(255)"`
}
type Ding struct {
	gorm.Model
	Ke     string `gorm:"type:varchar(255)"`
	Che    string `gorm:"type:varchar(255)"`
	Prices string `gorm:"type:varchar(255)"`
	Cid    int    `gorm:"type:int"`
}
type CheDing struct {
	DingId int    `gorm:"type:int(11)"`
	Name   string `gorm:"type:varchar(255)"`
	Lei    string `gorm:"type:varchar(255)"`
	Price  string `gorm:"type:varchar(255)"`
	Li     string `gorm:"type:varchar(255)"`
	Ke     string `gorm:"type:varchar(255)"`
	Che    string `gorm:"type:varchar(255)"`
	Prices string `gorm:"type:varchar(255)"`
}
